package com.tiantian.util;


public class CommonConstant {
	
	public static final String TIME_FORMAT_YMDHMS="yyyy-MM-dd HH:mm:ss";
	
	public enum QueryType {
		LIST, COUNT;
	}

	/**
	 * 状态：可用
	 */
	public static final String STATUS_VALID = "1";
	/**
	 * 状态：停用
	 */
	public static final String STATUS_DISABLE = "0";
	/**
	 * 状态：删除
	 */
	public static final String STATUS_DELETE = "2";

	// 状态
	public enum Status {
		Valid("1", 1), Disable("0", 0), Delete("2", 2);
		String strValue;
		Integer intValue;

		public String getStrValue() {
			return strValue;
		}

		public Integer getIntValue() { 
			return intValue;
		}

		private Status(String strValue, Integer intValue) {
			this.strValue = strValue;
			this.intValue = intValue;
		}
	}
	public final static String SESSION_USER_KEY = "session_user_key";
	/**
	 * 当前地址
	 */
	public static final String SYSTEM_CONFIG_LOCAL_ADDRESS = "local_address";
	/**
	 * 登出地址
	 */
	public static final String SYSTEM_CONFIG_CAS_LOGOUT = "cas_logout";
	
	
	/**
	 * 消息类型
	 * @author Administrator
	 *
	 */
	public static enum MESSAGE_TYPE{
		announcement(1,"公告消息"),
		info(2,"一般对话"),
		complaints(3,"投诉"),
		system(0,"系统消息");
		private int id;
		private String name;
		public int getId() {
			return id;
		}
		public String getName() {
			return name;
		}
		private MESSAGE_TYPE(int id, String name) {
			this.id = id;
			this.name = name;
		}
		
		
		
	}
}

